package org.example.kafka;

import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
        ArrayList<Thread> arrayList = new ArrayList<>();
        for (int i = 0; i < 1; i++) {
            arrayList.add(new Thread(new KafkaLogProducer()));
        }
        for (int i = 0; i < 1; i++) {
            arrayList.add(new Thread(new KafkaLogConsumer()));
        }
        for (Thread thread : arrayList) {
            thread.start();
        }
    }
}
